package com.xuyoupeng.springframework.beans.factory.support;

import com.xuyoupeng.springframework.beans.BeansException;
import com.xuyoupeng.springframework.beans.core.io.Resource;
import com.xuyoupeng.springframework.beans.core.io.ResourceLoader;

/**
 * @author xuyoupneg
 * @description 读取bean定义的接口
 * @date 2024/3/19 19:31
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegister();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;
}
